package com.robot.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.robot.dao.entity.File;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface FileMapper extends BaseMapper<File> {

    List<File> queryByKnowledgeId(Long knowledgeId, Long limit);

    void create(File file);

    void update(File file);

    File queryByFileId(Long fileId);

    void deletebyknowledgeId(Long knowledgeId);

    List<File> selectIdsByRobotid(@Param("robotid") Long robotid);


}
